const user = {
  state: {
    token: sessionStorage.getItem('token'),
    systemType: sessionStorage.getItem('systemType'),
  },

  mutations: {
    SET_TOKEN: (state, token) => {
      console.log('token');
      state.token = token
      sessionStorage.setItem('token', token)
    },
    SET_SYSTEMTYPE: (state, systemType) => {
      state.systemType = systemType
      sessionStorage.setItem('systemType', systemType)
    },
  },

  actions: {
  }
}

export default user

